home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / LetLoveEnergy.swf / scripts / frame_357 / PlaceObject2_57_5 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-08-05  |  628 b   |  24 lines

  1. onClipEvent(enterFrame){
  2.    if(this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged)
  3.    {
  4.       Flagged = false;
  5.       _root.man0.VelY = 0;
  6.       _root.man0.platform = true;
  7.       _root.man0.jumping = false;
  8.       _root.landsound.start();
  9.    }
  10.    else if(this.hitTest(_root.man0.collideline) && _root.man0.platform)
  11.    {
  12.       if(_parent.mover)
  13.       {
  14.          _root.man0.Internal_x += _parent.VelX;
  15.          _root.man0.Internal_y += _parent.VelY * 1.4;
  16.       }
  17.    }
  18.    else if(!this.hitTest(_root.collideline) && !Flagged)
  19.    {
  20.       _root.man0.platform = false;
  21.       Init();
  22.    }
  23. }
  24.